package ZuoYe01_LeiyuDuiXiang_0428;

//书籍有书名，出版社，作者，出版日期等信息，定义并测试书籍对象，输出书籍信息
public class Shu {
	String name;
	String chuBanShe;
	String zuoZhe;
	String riQi;

	public void show() {
		System.out.println(name + "的出版社是：" + chuBanShe + "，作者是：" + zuoZhe + "，出版日期是：" + riQi);
	}

	public static void main(String[] args) {
		Shu book1 = new Shu();
		book1.name = "《Java数据结构和算法》";
		book1.chuBanShe = "中国电力出版社";
		book1.zuoZhe = "Robert Lafore";
		book1.riQi = "2004年2月";
		book1.show();

	}

}
